<div class="layui-side layui-side-menu">
  <div class="layui-side-scroll">
    <div class="layui-logo" lay-href="home/console.html">
      <span>AdminUI</span>
    </div>

    <ul class="layui-nav layui-nav-tree" lay-accordion id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
      {foreach $menu as $vo}
      <li data-name="" class="layui-nav-item">
        <a
          {empty name="$vo.children"}
          lay-href="{:url($vo['uri'])}"
          {else /}
          href="javascript:;"
          {/empty}
        lay-tips="{$vo.name}" lay-direction="2">
          <i class="layui-icon {$vo.icon}"></i>
          <cite>{$vo.name}</cite>
        </a>
        {notempty name="$vo.children"}
        <dl class="layui-nav-child">
          {foreach $vo.children as $v}
          <dd data-name="">
            <a           {empty name="$v.children"}
                         lay-href="{:url($v['uri'])}"
                         {else /}
            href="javascript:;"
            {/empty}
            >{$v.name}</a>
            {notempty name="$v.children"}
            <dl class="layui-nav-child">
              {foreach $v.children as $value}
              <dd data-name="list"><a lay-href="{:url($value['uri'])}">{$value.name}</a></dd>
              {/foreach}
            </dl>
            {/notempty}
          </dd>
          {/foreach}
        </dl>
        {/notempty}
      </li>
      {/foreach}
    </ul>
  </div>
</div>